﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Communergy.Common;
using Microsoft.Practices.Unity;


namespace  Communergy.Repository.EntityFramework
{
    partial class communergyEntities : IUnitOfWork
    {
        Guid thisGuid;

        public Guid ThisGuid
        {
            get { return thisGuid; }

        }
        [InjectionConstructor]
        public communergyEntities(string connectionString, string containerName) :this()
        {
            thisGuid = Guid.NewGuid();
        }
        #region unitOfWork Members

        public void Save()
        {
            this.SaveChanges();
        }

     
        public void Rollback()
        {
            this.Rollback();
        }

        #endregion


        #region IDisposable Members

        public void Dispose()
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
